package com.healthy.suggestions.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.suggestions.mapper.ScoreItemsMapper;
import com.healthy.suggestions.domain.ScoreItems;
import com.healthy.suggestions.service.IScoreItemsService;

/**
 * 评分项Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class ScoreItemsServiceImpl implements IScoreItemsService 
{
    @Autowired
    private ScoreItemsMapper scoreItemsMapper;

    /**
     * 查询评分项
     * 
     * @param id 评分项主键
     * @return 评分项
     */
    @Override
    public ScoreItems selectScoreItemsById(Long id)
    {
        return scoreItemsMapper.selectScoreItemsById(id);
    }

    /**
     * 查询评分项列表
     * 
     * @param scoreItems 评分项
     * @return 评分项
     */
    @Override
    public List<ScoreItems> selectScoreItemsList(ScoreItems scoreItems)
    {
        return scoreItemsMapper.selectScoreItemsList(scoreItems);
    }

    /**
     * 新增评分项
     * 
     * @param scoreItems 评分项
     * @return 结果
     */
    @Override
    public int insertScoreItems(ScoreItems scoreItems)
    {
        return scoreItemsMapper.insertScoreItems(scoreItems);
    }

    /**
     * 修改评分项
     * 
     * @param scoreItems 评分项
     * @return 结果
     */
    @Override
    public int updateScoreItems(ScoreItems scoreItems)
    {
        return scoreItemsMapper.updateScoreItems(scoreItems);
    }

    /**
     * 批量删除评分项
     * 
     * @param ids 需要删除的评分项主键
     * @return 结果
     */
    @Override
    public int deleteScoreItemsByIds(Long[] ids)
    {
        return scoreItemsMapper.deleteScoreItemsByIds(ids);
    }

    /**
     * 删除评分项信息
     * 
     * @param id 评分项主键
     * @return 结果
     */
    @Override
    public int deleteScoreItemsById(Long id)
    {
        return scoreItemsMapper.deleteScoreItemsById(id);
    }
}
